<?
include 'Module/AlbumModule.php';
$albumMD=new AlbumModule();
$data=$albumMD->getAlbums();
echo $albumMD->error;
?>
<li id="page_NEW">
<div class="slogan">Gallery</div>
<div class="box">
<div class="">
    <h2 class="newfont bold">Photo Albums</h2>
    <div style="padding-left: 20px">
        <?
        
        if($data!=null)
        foreach ($data as $al){
            $albumdetails=$albumMD->getAlbumDetail($al["id"]);
            if($albumdetails!=null){
                ?>
                <div class="gal1">
                    <div class="photo1">
                        <a href="<?=$albumdetails[0]["image"]?>" rel="prettyPhoto[album_<?=$al["id"]?>]" title="<?=$al["title"]?>">
                            <img src="<?=$albumdetails[0]["image"]?>" class="border1" style="border-color: rgb(63, 63, 63); ">
                            <span style="opacity: 0; "></span></a></div>
                    <strong><?=$al["title"]?></strong>
                </div>
                <?
                for($i=1;$i<count($albumdetails);$i++){
                    ?><a href="<?=$albumdetails[$i]["image"]?>" class="hideen" rel="prettyPhoto[album_<?=$al["id"]?>]" title="<?=$al["title"]?>"></a><?
                }
            }
            
        }
        ?>
    <div class="gal1">
        <div class="photo1">
            <a href="images/gallery02_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
    <div class="gal1">
        <div class="photo1">
            <a href="images/gallery01_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
    <div class="gal1">
        <div class="photo1">
            <a href="images/gallery01_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
    <div class="gal1 last">
        <div class="photo1">
            <a href="images/gallery01_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
    <div class="gal1">
        <div class="photo1">
            <a href="images/gallery01_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
    <div class="gal1">
        <div class="photo1">
            <a href="images/gallery01_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
    <div class="gal1">
        <div class="photo1">
            <a href="images/gallery01_big.jpg" rel="prettyPhoto[pp_gal1]" title="Photo Title">
                <img src="images/gallery01.jpg" class="border1" style="border-color: rgb(63, 63, 63); ">
                <span style="opacity: 0; "></span></a></div>
        <strong>Suspendisse enim arcu, convallis </strong>
    </div>
        </div>
    
    
    
<div class="clear"></div>
</div>
</div>
</li>